<!DOCTYPE html> 
<html>

<head>
  <title></title>
  
  
  
  <?php
      include_once('head.php'); 
   ?> 
  
  <!-- <script type="application/javascript" src="iscroll4/src/iscroll.js"></script> -->
  
  <link href="jquery-mobile-iscrollview-master/lib/jquery.mobile.iscrollview.css" media="screen" rel="stylesheet" type="text/css" />
  <link href="jquery-mobile-iscrollview-master/lib/jquery.mobile.iscrollview-pull.css" media="screen" rel="stylesheet" type="text/css" /> 
  
  <style>
  .block {
  padding: 0px;
  width: 50%;
  }
  #container {
  width: inherit !important;
  margin: 100%;
  }
  </style>
 
 <!--  for blocksit : pinterest effect -->
  
  <link rel='stylesheet' href="blocksit/style-custom.css" media='screen' />
  
  
  
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> -->

<script src="blocksit/blocksit.min.js"></script>
  
  
  
  
  <!-- css per il footer -->
  <style>
      .nav-glyphish-example .ui-btn .ui-btn-inner { height:25px; padding-top: 10px !important; }
      .nav-glyphish-example .ui-btn .ui-icon { width: 30px!important; /*height: 25px!important;*/ margin-left: -15px !important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; -webkit-border-radius: 0 !important; border-radius: 0 !important; }
      #home .ui-icon { background:  url(images/glyphish-icons-png/53-house.png) 50% 50% no-repeat; background-size: 18px 18px; }
      #search .ui-icon { background:  url(images/glyphish-icons-png/06-magnify.png) 50% 50% no-repeat; background-size: 18px 16px;  }
      #gift .ui-icon { background:  url(images/glyphish-icons-png/24-gift.png) 50% 50% no-repeat;  background-size: 14px 20px; }
      #wishlist .ui-icon { background:  url(images/glyphish-icons-png/28-star.png) 50% 50% no-repeat;  background-size: 22px 22px; }
   </style>
  
  
  <script type="application/javascript" src="jquery-mobile-iscrollview-master/demo/build/javascripts/iscroll.js"></script>
  <script type="application/javascript" src="jquery-mobile-iscrollview-master/lib/jquery.mobile.iscrollview.js"></script>
  <!-- <script type="application/javascript" src="jquery-mobile-iscrollview-master/demo/build/javascripts/pull-example.js"></script> -->
  
  
  
  <style type="text/css" media="all">

/*   body,ul,li { */
/*   padding:0; */
/*   margin:0; */
/* } */

/* body { */
/*   /* font-size:12px; */ */
/*   -webkit-user-select:none; */
/*     -webkit-text-size-adjust:none; */
/* /*  -webkit-box-sizing:border-box;*/ */
/*   font-family:helvetica; */
/*   /*padding-bottom:45px;*/  /*  This prevents the scroller to lock if the user swipes down outside of the screen. */
/*                 NOT needed if in home screen mode. */ */
/* } */

/*#header {
  position:absolute; z-index:2;
  top:0; left:0;
  width:100%;
  height:45px;
  line-height:45px;
  background-image:-webkit-gradient(linear, 0 0, 0 100%, color-stop(0, #fe96c9), color-stop(0.05, #d51875), color-stop(1, #7b0a2e));
  background-image:-moz-linear-gradient(top, #fe96c9, #d51875 5%, #7b0a2e);
  background-image:-o-linear-gradient(top, #fe96c9, #d51875 5%, #7b0a2e);
  padding:0;
  color:#eee;
  font-size:20px;
  text-align:center;
}

#header a {
  color:#f3f3f3;
  text-decoration:none;
  font-weight:bold;
  text-shadow:0 -1px 0 rgba(0,0,0,0.5);
}*/

.wrapper {
  /* position:absolute; */ 
  /*z-index:1;
  top:45px; bottom:0; left:0; */
  width:100%;
  /* background:#aaa; */
  overflow:auto;
}

.scroller {
  width:2040px;
  height:100%;
  float:left;
  padding:0;
}

.scroller ul {
  list-style:none;
  display:block;
  float:left;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  text-align:left;
}

.scroller li {
  display:block;
  vertical-align:middle;
  float:left;
  /* padding:0 10px; */
  /*width:80px; */
  height:100%;
  border-left:1px solid #ccc;
  border-right:1px solid #fff;
  /* background-color:#fafafa; */
  font-size:14px;
}

.ui-bar {
  padding: .4em 15px;  
  
}

/* Customizzo le distanze dai margini di JQM che di defaul è 15 px. */

/*
.ui-content { padding: 8px; }
.ui-content .ui-listview, .ui-panel-inner > .ui-listview { margin: -8px; }
.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 8px; }
*/

</style>
  
 
 <!-- <style type="text/css">
        .hscroll1 {
            white-space:nowrap;
            position:absolute;
            /*background-color:#ffffc0;*/
            padding: 0.44em;
        }
        .hWrap1 {
            min-height:3em;
            /*background-color:#eee;*/
        }
        .hContent1 {
            padding: 0.44em !important
        }
        .hContent1 ol {
            padding:0;
            margin:0;
        }
        .hContent1 ol li {
            display:inline-block;
            padding:0 0.44em;
            margin:0;
        }
    </style>  -->
  
  
  
  
  
  
  
  
  <script type="text/javascript"> 


//  $(document).ready(function(){ 
  
  	 function Gift(giftname, giftdest, giftbudget_min, giftbudget_max){
 	      this.name = giftname;
 	      this.dest = giftdest;
 	      this.budget_min = giftbudget_min;
 	      this.budget_max = giftbudget_max;  
 	  }

  	 function getFromSession() {
		return JSON.parse(sessionStorage.getItem('gift')); 
  	  	 }

  	 
  	function print() {
		var g = getFromSession();
		var s = 'Nome: ' + g.name + ' Destinatario: ' + g.dest + ' min: ' + g.budget_min + ' max: ' + g.budget_max; 
		alert(s);
		  }

  	
  	 function updateInSession() {
  		var gift = getFromSession();
  		gift.budget_min = $('#budget_min').val();
		  gift.budget_max = $('#budget_max').val();

		  //print();

  	  	
		  sessionStorage.setItem('gift', JSON.stringify(gift) );

		// print();
  	  	 }

  	
  	 
 	  function get_giftname() {
 	 	var gift = getFromSession();
 		return gift.name;
 		  } 

	  function get_giftdest() {
		 var gift = getFromSession();
		 return gift.dest;
		  }

	  function get_giftbudgetmin() {
			 var gift = getFromSession();
			 return gift.budget_min;
			  }

	  function get_giftbudgetmax() {
			 var gift = getFromSession();
			 //alert(gift.budget_max);
			 return gift.budget_max;
			  }  


	
	  	    
  	
  	
  	
  	
  	
  function load_data() {

	 

    
  }	

  
  $(document).ready(function(){ 
	  var div = '<div><h4>' + 'Regalo per ' + get_giftname() + '<h4></div>';    
	  $('div#show').html(div);	

	  $('#budget_min').val(get_giftbudgetmin());
	  $('#budget_max').val(get_giftbudgetmax()); 
	  $('#budget_range').rangeslider( "refresh" );  // refresh effetto grafico




	  /*
	  * Quando il panel viene chiuso devo salvare le modifiche.
	  * In alternativa posso aggiungere nel panel un button SAVE e
	  * agganciare l'evento di salvataggio.
	  */
	  $( "#optpanel" ).on( "panelclose", function( event, ui ) {
      //$('#thelist').empty();
			updateInSession();
			load_data();  // in this case refresh list
			
			$('#gifts_in_shake').css('visibility', 'visible');
			$('#gifts_in_shake').html('5');

	 	} );
	 	
	 	
	 	load_data();

	 	
	 	  
	 	
	 	$("a").live("click", function (event) {
      //alert();
      var parm = $(this).attr("data-parm");
      //do something here with parameter on page 2 (or any page in the dom)
      $("#showParmHere").html(parm);
    });
    
    
     $("#page_list_categories a").live("click", function (event) {
      
      var param = $(this).attr("data-parm");      
      $("#page_list_item div[data-role=header] h1").html(param);

      
      
      // with param I can get data via ajax
      
      $.ajax({ url: "get_list_item.php",
        type: 'POST',
        data: "item_type=" + param,
        success: function(data) {          
          //alert(data);
           $("#page_list_item div[data-role=content] ul").html(data);
          // $("#page_list_item div[data-role=content] div#container").html(data);
           //  $("#page_list_item div[data-role=content] ul" ).listview("refresh");          
          //$("#page_list_item div#scroller ul").html(data);
          //$("#page_list_item div#scroller ul").listview();
          
                    
            }, 
        error: function(response, error) {
          //alert("Error: " + response + " : " + error)
          //$("#search-results").html("Unable to load search results.");
          }
        }); // end ajax            
        
        
      });
    
    
    
	 
  });  // end document ready

 
  
  
  </script>
  
  
  <!-- To load Iscroll  -->
  
  <!-- <script type="text/javascript">
    
    var popular_scroll;
    var consigliati_scroll;
    function loaded() {
      popular_scroll = new iScroll('most_popular');
      //consigliati_scroll = new iScroll('consigliati');
    }
    
    // if set, block vertical scroll of the page
    //document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
    
    //document.addEventListener('DOMContentLoaded', loaded, false);
    
  </script> -->
  
  
  
  
  <style type="text/css">
  /*  
    .horizontalWrapper {
      height: 155px;
      
    }
   */ 
    /*.scroller li {
      font-size: 10px;
    }*/
    
  </style>
  
 </head>
 
 <body>
   
   
   
    
  
   
   
   
 
 <!-- Start of first page -->

  <div id="page_giftlist" class="pull-demo-page" data-role="page" >
  <!--   
  <div data-role="panel" id="optpanel" data-display="overlay" data-theme="c">        
  <a style="float:right" href="#my-header" data-rel="close" data-role="button" data-iconpos="notext" data-icon="delete" class="ui-btn-right"></a>
  <h4>Opzioni</h4>    
  <div id="show"> </div> <br/>
  	<label>Budget
       <div id="budget_range" data-role="rangeslider" data-mini="true" data-track-theme="c" data-theme="b">
	        <label class="ui-hidden-accessible" for="range-3a">Rangeslider:</label>
	        <input type="range" name="budget_min" id="budget_min" min="0" max="400" value="">
	        <label for="range-3b">Rangeslider:</label>
        	<input type="range" name="budget_max" id="budget_max" min="0" max="400" value="">
        </div>
     </label>   
    <br/>
    <h3>Suggerimenti</h3> <br/>
    
    <form>
	    <fieldset data-mini="true" data-role="controlgroup">
	        <legend>Vertical:</legend>
	        <input type="checkbox" name="checkbox-v-2a" id="checkbox-v-2a">
	        <label for="checkbox-v-2a">One</label>
	        <input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b">
	        <label for="checkbox-v-2b">Two</label>
	        <input type="checkbox" name="checkbox-v-2c" id="checkbox-v-2c">
	        <label for="checkbox-v-2c">Three</label>
	    </fieldset>
	</form>
    
  </div> -->    <!-- /panel -->

  
    <header id="my-header" data-role="header" data-position="fixed">
    	<a href="#optpanel" class="ui-btn-left" data-role="button" data-icon="bars" data-iconpos="notext" data-theme="a" data-inline="true">Options</a>
        <h1>Crea il tuo shake</h1>
        <!--  a id="fer" href="#page2" class="ui-btn-right" data-icon="arrow-r">Next</a -->
    </header><!-- /header -->

  <div data-role="content" data-iscroll>
   
   <!--    
    <ul class="ui-icon-alt" style="padding-bottom: 15px" data-role="listview">
      <li><a style="font-size: 14px; color:#366097" href="#page_list_categories">Scegli per categoria</a></li>
    </ul> -->
  
  <!-- add for ajax call -->
 <!--    <div style="padding-top: 5px; padding-bottom: 5px; font-size: 15px; color:#366097 ">I più scelti </div>  
   -->
<!--    <div class="wrapper" id="most_popular"> -->
<!--      <div class="scroller"> -->
    	<!--  content load via ajax --> 
<!--     </div>  -->
<!--    </div>  -->
   
  
  <!-- use scroll with dynamic grid data-iscroll="" -->
  <div id="container"   class="ui-grid-solo" >
  <div class="block description">Pretty row 1. ciao skaljfdlksajhfkljaslkfjdlksajflkseajlkdfjsakljfdlksjalkfdjslkaj</div> -->
    <div class="block">  Pretty row 2 </div>
    <div class="block description">Pretty row 1. ciao skaljfdlksajhfkljaslkfjdlksajflkseajlkdfjsakljfdlksjalkfdjslkaj</div> -->
    <div class="block">  Pretty row 2 </div>
    <div class="block description">Pretty row 1. ciao skaljfdlksajhfkljaslkfjdlksajflkseajlkdfjsakljfdlksjalkfdjslkaj</div> -->
    <div class="block">  Pretty row 2 </div>
  
  </div>
  <div class="iscroll-pullup">
      <span class="iscroll-pull-icon"></span>
      <span class="iscroll-pull-label" data-iscroll-loading-text="Custom loading text" data-iscroll-pulled-text="Custom pulled text">Custom reset text</span>
  </div>
  
  
  </div>  <!-- content -->
  

	 
      
      <div data-role="footer" data-position="fixed" class="nav-glyphish-example" data-theme=c>
        <div data-role="navbar" class="nav-glyphish-example" >
          <ul>
            <li><a href="/index.php" id="home" data-icon="custom"><h4>Home</h4></a></li>
            <li><a href="#" id="search" data-icon="custom"><h4>Search</h4></a></li>
            <li><a href="#" id="gift" data-icon="custom">
                <span id="gifts_in_shake" class="ui-li-count" style="left:42px; top:-9px; visibility: hidden "></span>
                <h4>Giftshake</h4>
                </a>
            </li>
            <li><a href="#" id="wishlist" data-icon="custom"><h4>Preferiti</h4></a></li>
          </ul>
        </div>
      </div> <!-- footer -->	


  </div> <!-- end page -->
  

  
  
  <script type="text/javascript">

		var scrollCateg;
		function loadedCat() {
			scrollCateg = new iScroll('wrapper_categ');
		}
		
		document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
		
		document.addEventListener('DOMContentLoaded', loadedCat, false);

		$('#page_list_categories').live('pageshow', function() {
			setTimeout(function () {  // <-- Simulate network congestion, remove setTimeout from production!
		    scrollCateg.refresh();   // Remember to refresh when contents are loaded (ie: on ajax completion)
			  }, 0); // <-- Simulate network congestion, remove setTimeout from production!
			});
	
	</script>
  
<style type="text/css" media="all">

.wrapperv {
	position:absolute; 
	z-index:1;
	top:45px; 
	bottom:48px; 
	left:0;
	width:100%;
	background:#aaa;
	overflow:auto;
	

}

.scrollerv {
	position:absolute; 
	z-index:1;
/*	-webkit-touch-callout:none;*/
	-webkit-tap-highlight-color:rgba(0,0,0,0);
	width:100%;
/* 	padding:0; */
}

.scrollerv ul {
	list-style:none;
	padding:0;
	margin:0;
	width:100%;
	text-align:left;
}

.scrollerv li {
	/*padding:0 10px;*/
	/*height:40px;
	line-height:40px;*/
	border-bottom:1px solid #ccc;
	border-top:1px solid #fff;
	background-color:#fafafa;
	/*font-size:14px;*/
} 

  
  </style>
  
  <div data-role="page" id="page_list_categories">
    <div data-role="header" data-position="fixed">
      <!-- quando clicco su back forzo il reload della pagina cosi che venga 
        ricaricato tutto il javascript necessario per gli iscroll.
        In alternativa posso gestire tutte le pagine in file html/php esterni
        senza utilizzare ajax. Nelle chiamate userò rel="external".
        Adesso funziona anche senza ricaricare tutta la pagina e il js
        perchè allo show della terza pag faccio il refresh di iscroll.
        -->
       <a href="#"  data-icon="arrow-l" onclick="window.location.href = &quot;page.gift_list.php&quot;">Back</a>
      <!-- <a href="#page_giftlist" data-rel="back"  data-icon="arrow-l" >Back</a> -->
      
      <h1>Acquista per categoria</h1>
    </div>
    <div class="wrapperv" id="wrapper_categ"> <!-- data-role="content" -->
			<div class="scrollerv">
			  <ul id="categList" data-role="listview" class="ui-icon-alt">
	        <li><a href="#page_list_item" data-parm="riviste">Riviste</a></li> <!-- or via call external and not ajax -->
	        <!-- <li><a href="get_new_list_url.php?param=riviste" rel="external" data-parm="riviste">Riviste</a></li> -->
	        <li><a href="#">Libri</a></li>
	        <li><a href="#">Elettronica</a></li>
	        <li><a href="#">Informatica</a></li>
	        <li><a href="#">Profumeria</a></li>
	        <li><a href="#">Gioielli</a></li>
	        <li><a href="#">Vestiario</a></li>
	        <li><a href="#">Accessori</a></li>        
	        <li><a href="#">Aperitivi</a></li>
	        <li><a href="#">Viaggi</a></li>
	      	<li><a href="#">Libri</a></li>
	        <li><a href="#">Elettronica</a></li>
	        <li><a href="#">Informatica</a></li>
	        <li><a href="#">Profumeria</a></li>
	        <li><a href="#">Gioielli</a></li>
	        <li><a href="#">Vestiario</a></li>
	        <li><a href="#">Accessori</a></li>        
	        <li><a href="#">Aperitivi</a></li>
	        <li><a href="#">Viaggi</a></li>
	      </ul>
	    </div>
	   </div>
    
    <div id="footer" data-role="footer" data-position="fixed" class="nav-glyphish-example" data-theme=c>
        <div data-role="navbar" class="nav-glyphish-example" >
          <ul>
            <li><a href="index.php" id="home" data-icon="custom"><h4>Home</h4></a></li>
            <li><a href="#" id="search" data-icon="custom"><h4>Search</h4></a></li>
            <li><a href="#" id="gift" data-icon="custom">
                <span id="gifts_in_shake" class="ui-li-count" style="left:42px; top:-9px; visibility: hidden "></span>
                <h4>Giftshake</h4>
                </a>
            </li>
            <li><a href="#" id="wishlist" data-icon="custom"><h4>Preferiti</h4></a></li>
          </ul>
        </div>
      </div> <!-- footer -->  
  </div>
  
  
  
  <style>
    #page_list_item div[data-role="content"] ul li { height: 100px; }
    /*#page_list_item div#scroller ul li { height: 100px; }*/
    #page_list_item img { padding: 5px;   }
  
  </style>
  
  
 
  <script type="text/javascript">

 // $('#page_giftlist').on('pageload', function() {
  
  $(document).delegate('#page_giftlist', 'pageload', function () {
	       	/*
	           $('#container').BlocksIt({
	       	      numOfCol: 2,
	       	      offsetX: 8,
	       	      offsetY: 8
	       	    });
	          */
	  //        alert(); 	    
	  //         $("#page_giftlist div[data-role=content]").iscrollview("refresh");

  });

  </script>
  
  






<script>
  
  
  /*jslint browser: true, sloppy: true, white: true, nomen: true, plusplus:true, maxerr: 50, indent: 2 */
/*global jQuery:false, iScroll:false */

/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true,
         undef:true, curly:true, browser:true, jquery:true, indent:2, maxerr:50,
         white:false, nomen:false */

//-------------------------------------------------------
// Pull-Up and Pull-Down callbacks for "Pull" page
//-------------------------------------------------------
(function pullPagePullImplementation($) {
  "use strict";


  $.ajax({ url: "get_new_list_url.php",
      type: 'POST',
      data: 'budget_min='+ $('#budget_min').val() + '&budget_max='+ $('#budget_max').val(),
      //async: false,
      
      success: function(data) {
        //alert("Loaded content...");
        //alert(data);
       // $("#most_popular div.scroller").html(data);
         $("#page_giftlist div#container").html(data);

  /*   	
         $('#container').BlocksIt({
     	      numOfCol: 2,
     	      offsetX: 8,
     	      offsetY: 8
     	    });
   */     
        // $("#page_giftlist div[data-role=content]").iscrollview("refresh");
         
        
        //$("#search-results-list").listview("refresh");
          }, 
      error: function(response, error) {
        //alert("Error: " + response + " : " + error)
        //$("#search-results").html("Unable to load search results.");
      }
  });


  
  var pullDownGeneratedCount = 0,
      pullUpGeneratedCount = 0,
      //listSelector = "div.pull-demo-page ul.ui-listview",
      //lastItemSelector = listSelector + " > li:last-child";
      listSelector = "div.pull-demo-page div#container",
      lastItemSelector = listSelector + " > div:last-child";
    
  /* For this example, I prepend three rows to the list with the pull-down, and append
   * 3 rows to the list with the pull-up. This is only to make a clear illustration that the
   * action has been performed. A pull-down or pull-up might prepend, append, replace or modify
   * the list in some other way, modify some other page content, or may not change the page 
   * at all. It just performs whatever action you'd like to perform when the gesture has been 
   * completed by the user.
   */
  function gotPullDownData(event, data) {
    var i,
        newContent = "";        
    for (i=0; i<3; i+=1) {  // Generate some fake new content
      newContent = "<li>Pulldown-generated row " + (++pullDownGeneratedCount) + "</li>" + newContent;
      }
    $(listSelector).prepend(newContent).listview("refresh");  // Prepend new content and refresh listview
    data.iscrollview.refresh();    // Refresh the iscrollview
    }
  
  function gotPullUpData(event, data) {
	  $.ajax({ url: "get_new_list_url.php",
	        type: 'POST',
	        data: 'budget_min='+ $('#budget_min').val() + '&budget_max='+ $('#budget_max').val(),
	        //async: false,
	        success: function(data) {
	         
             $("#page_giftlist div[data-role=content] div#container").append(data);
            // $("#page_list_item div[data-role=content] ul" ).listview("refresh"); 


             $('#container').BlocksIt({
                numOfCol: 2,
                offsetX: 8,
                offsetY: 8
              });
             $("#page_giftlist div[data-role=content]").iscrollview("refresh");             
           }
          }); // end ajax

	  
    
    var i,
        iscrollview = data.iscrollview,
        newContent = "";
    // for (i=0; i<3; i+=1) { 
      // newContent += "<li>Pullup-generated row " + (++pullUpGeneratedCount) + "</li>";
      // }
    // $(listSelector).append(newContent).listview("refresh");
  
    // The refresh is a bit different for the pull-up, because I want to demonstrate the use
    // of refresh() callbacks. The refresh() function has optional pre and post-refresh callbacks.
    // Here, I use a post-refresh callback to do a timed scroll to the bottom of the list
    // after the new elements are added. The scroller will smoothly scroll to the bottom over
    // a 400mSec period. It's important to use the refresh() callback to insure that the scroll
    // isn't started until the scroller has first been refreshed.
    iscrollview.refresh(null, null,
      $.proxy(function afterRefreshCallback(iscrollview) { 
        this.scrollToElement(lastItemSelector, 400); 
        }, iscrollview) ); 
    }
  
  // This is the callback that is called when the user has completed the pull-down gesture.
  // Your code should initiate retrieving data from a server, local database, etc.
  // Typically, you will call some function like jQuery.ajax() that will make a callback
  // once data has been retrieved.
  //
  // For demo, we just use timeout to simulate the time required to complete the operation.
  function onPullDown (event, data) { 
    setTimeout(function fakeRetrieveDataTimeout() {
      gotPullDownData(event, data);
      }, 
      1500); 
    }    

  // Called when the user completes the pull-up gesture.
  function onPullUp (event, data) { 
    
    
    setTimeout(function fakeRetrieveDataTimeout() {
      gotPullUpData(event, data);
      }, 
      1500); 
    }    
  
  // Set-up jQuery event callbacks
  $(document).delegate("div.pull-demo-page", "pageinit", 
    function bindPullPagePullCallbacks(event) {
      $(".iscroll-wrapper", this).bind( {
      iscroll_onpulldown : onPullDown,
      iscroll_onpullup   : onPullUp
      } );
    } );  

  }(jQuery));


 </script>



  
  
  
  <!-- class="pull-demo-page" -->
    <div data-role="page"  id="page_list_item">
    <div data-role="header">
      <a data-rel="back" data-icon="arrow-l">Categorie</a>
      <h1></h1>
      <a href="#">Affinare</a>
    </div>
    <div data-role="content" data-iscroll="">
      <!-- content via ajax -->
      
      <!-- <div id="wrapper">
  <div id="scroller"> -->
    <!-- <div id="pullDown">
      <span class="pullDownIcon"></span><span class="pullDownLabel">Pull down to refresh...</span>
    </div> -->
    <div>
	 <!-- <div id="container" class="ui-grid-solo" > -->
<!--  	  <div class="block description">Pretty row 1. ciao skaljfdlksajhfkljaslkfjdlksajflkseajlkdfjsakljfdlksjalkfdjslkaj</div> -->
<!--     <div class="block">  Pretty row 2 </div> -->
<!--       <li>Pretty row 3</li> -->
<!--       <li>Pretty row 4</li> -->
<!--       <li>Pretty row 5</li>
      <li>Pretty row 6</li>
      <li>Pretty row 7</li>
      <li>Pretty row 8</li>
      <li>Pretty row 9</li>
      <li>Pretty row 10</li>
      <li>Pretty row 11</li>
      <li>Pretty row 12</li>
      <li>Pretty row 13</li>
      <li>Pretty row 14</li>
      <li>Pretty row 15</li>
      <li>Pretty row 16</li>
      <li>Pretty row 17</li>
      <li>Pretty row 18</li>
      <li>Pretty row 19</li>
      <li>Pretty row 20</li>
      <li>Pretty row 21</li>
      <li>Pretty row 22</li>
      <li>Pretty row 23</li>
      <li>Pretty row 24</li>
      <li>Pretty row 25</li>
      <li>Pretty row 26</li>
      <li>Pretty row 27</li>
      <li>Pretty row 28</li>
      <li>Pretty row 29</li>
      <li>Pretty row 30</li>
      <li>Pretty row 31</li>
      <li>Pretty row 32</li>
      <li>Pretty row 33</li>
      <li>Pretty row 34</li>
      <li>Pretty row 35</li>
      <li>Pretty row 36</li>
      <li>Pretty row 37</li>
      <li>Pretty row 38</li>
      <li>Pretty row 39</li>
      <li>Pretty row 40</li> -->
<!-- </ul>  -->
    
  <!-- </div> -->
<!--   <div class="iscroll-pullup"> -->
<!--       <span class="iscroll-pull-icon"></span> -->
<!--       <span class="iscroll-pull-label" data-iscroll-loading-text="Custom loading text" data-iscroll-pulled-text="Custom pulled text">Custom reset text</span> -->
<!--   </div> -->      
</div>
  <div class="iscroll-pullup">
      <span class="iscroll-pull-icon"></span>
      <span class="iscroll-pull-label" data-iscroll-loading-text="Custom loading text" data-iscroll-pulled-text="Custom pulled text">Custom reset text</span>
  </div>
</div>
      
      
    <!-- </div> -->
    <div data-role="footer" data-position="fixed" class="nav-glyphish-example" data-theme=c>
        <div data-role="navbar" class="nav-glyphish-example" >
          <ul>
            <li><a href="/index.php" id="home" data-icon="custom"><h4>Home</h4></a></li>
            <li><a href="#" id="search" data-icon="custom"><h4>Search</h4></a></li>
            <li><a href="#" id="gift" data-icon="custom">
                <span id="gifts_in_shake" class="ui-li-count" style="left:42px; top:-9px; visibility: hidden "></span>
                <h4>Giftshake</h4>
                </a>
            </li>
            <li><a href="#" id="wishlist" data-icon="custom"><h4>Preferiti</h4></a></li>
          </ul>
        </div>
      </div> <!-- footer -->   
  </div>


  
 </body>  
</html>